package vip.xiaonuo.modular.manage.tsdatarecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.xiaonuo.core.pojo.base.entity.BaseEntity;

/**
 * 元数据类型
 *
 * @author JackLee
 * 2022/8/25 9:36
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("base_data_type")
public class BaseDataType extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 类型名称
     */
    private String name;

    /**
     * 类型编码
     */
    private String code;

    /**
     * 展现方式：point   grid   heatmap
     */
    private String display;

    /**
     * 状态
     * @see vip.xiaonuo.core.enums.CommonStatusEnum
     */
    private Integer status;

    /**
     * 存储该类型数据的ClickHouse表名
     */
    private String chTableName;

    /**
     * clickhouse表的index列数
     */
    private Integer chTableIndexNum;
}
